﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010B9 RID: 4281
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneEnterStageScRsp : IMessage<SceneEnterStageScRsp>, IMessage, IEquatable<SceneEnterStageScRsp>, IDeepCloneable<SceneEnterStageScRsp>, IBufferMessage
	{
		// Token: 0x1700361A RID: 13850
		// (get) Token: 0x0600BF5F RID: 48991 RVA: 0x00204ACD File Offset: 0x00202CCD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneEnterStageScRsp> Parser
		{
			get
			{
				return SceneEnterStageScRsp._parser;
			}
		}

		// Token: 0x1700361B RID: 13851
		// (get) Token: 0x0600BF60 RID: 48992 RVA: 0x00204AD4 File Offset: 0x00202CD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneEnterStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700361C RID: 13852
		// (get) Token: 0x0600BF61 RID: 48993 RVA: 0x00204AE6 File Offset: 0x00202CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneEnterStageScRsp.Descriptor;
			}
		}

		// Token: 0x0600BF62 RID: 48994 RVA: 0x00204AED File Offset: 0x00202CED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEnterStageScRsp()
		{
		}

		// Token: 0x0600BF63 RID: 48995 RVA: 0x00204AF8 File Offset: 0x00202CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEnterStageScRsp(SceneEnterStageScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BF64 RID: 48996 RVA: 0x00204B44 File Offset: 0x00202D44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneEnterStageScRsp Clone()
		{
			return new SceneEnterStageScRsp(this);
		}

		// Token: 0x1700361D RID: 13853
		// (get) Token: 0x0600BF65 RID: 48997 RVA: 0x00204B4C File Offset: 0x00202D4C
		// (set) Token: 0x0600BF66 RID: 48998 RVA: 0x00204B54 File Offset: 0x00202D54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700361E RID: 13854
		// (get) Token: 0x0600BF67 RID: 48999 RVA: 0x00204B5D File Offset: 0x00202D5D
		// (set) Token: 0x0600BF68 RID: 49000 RVA: 0x00204B65 File Offset: 0x00202D65
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x0600BF69 RID: 49001 RVA: 0x00204B6E File Offset: 0x00202D6E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneEnterStageScRsp);
		}

		// Token: 0x0600BF6A RID: 49002 RVA: 0x00204B7C File Offset: 0x00202D7C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneEnterStageScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.BattleInfo, other.BattleInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BF6B RID: 49003 RVA: 0x00204BCC File Offset: 0x00202DCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BF6C RID: 49004 RVA: 0x00204C21 File Offset: 0x00202E21
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BF6D RID: 49005 RVA: 0x00204C29 File Offset: 0x00202E29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BF6E RID: 49006 RVA: 0x00204C34 File Offset: 0x00202E34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(122);
				output.WriteMessage(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BF6F RID: 49007 RVA: 0x00204C90 File Offset: 0x00202E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BF70 RID: 49008 RVA: 0x00204CE8 File Offset: 0x00202EE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneEnterStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BF71 RID: 49009 RVA: 0x00204D50 File Offset: 0x00202F50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BF72 RID: 49010 RVA: 0x00204D5C File Offset: 0x00202F5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 122U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04004D1A RID: 19738
		private static readonly MessageParser<SceneEnterStageScRsp> _parser = new MessageParser<SceneEnterStageScRsp>(() => new SceneEnterStageScRsp());

		// Token: 0x04004D1B RID: 19739
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004D1C RID: 19740
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04004D1D RID: 19741
		private uint retcode_;

		// Token: 0x04004D1E RID: 19742
		public const int BattleInfoFieldNumber = 15;

		// Token: 0x04004D1F RID: 19743
		private SceneBattleInfo battleInfo_;
	}
}
